import React from 'react'
import { useNavigate } from 'react-router-dom'

export function Course () {
  const router = useNavigate()
  function goStudy () {
    router('/video/1?p=1')
  }
  return (
    <div>
      <button onClick={() => goStudy()}>前往学习</button>
    </div>
  )
}

export default Course